//
//  PKHUD+extension.swift
//  DWater-Swift
//
//  Created by mac on 2017/4/21.
//  Copyright © 2017年 Dimon.胡亚宾. All rights reserved.
//

import Foundation
import PKHUD

public extension HUD{

    public  class func normalHudInView(_ inview: UIView) -> (){
        HUD.dimsBackground = false
        HUD.allowsInteraction = false
        HUD.show(.progress, onView: inview)
    }
    
    
    public  class func textHUDInView(withText:String!, inView:UIView) -> (){
        HUD.dimsBackground = false
        HUD.allowsInteraction = false
        HUD.flash(.label(withText), onView: inView ,delay: 2.0) { _ in
            print("License Obtained.")
        }
    }



}
